package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TProcureMapper;
import com.ruoyi.system.domain.TProcure;
import com.ruoyi.system.service.ITProcureService;

/**
 * 采购信息Service业务层处理
 * 
 * @author 张倍
 * @date 2024-05-08
 */
@Service
public class TProcureServiceImpl implements ITProcureService 
{
    @Autowired
    private TProcureMapper tProcureMapper;

    /**
     * 查询采购信息
     * 
     * @param ordersId 采购信息主键
     * @return 采购信息
     */
    @Override
    public TProcure selectTProcureByOrdersId(Integer ordersId)
    {
        return tProcureMapper.selectTProcureByOrdersId(ordersId);
    }

    /**
     * 查询采购信息列表
     * 
     * @param tProcure 采购信息
     * @return 采购信息
     */
    @Override
    public List<TProcure> selectTProcureList(TProcure tProcure)
    {
        return tProcureMapper.selectTProcureList(tProcure);
    }

    /**
     * 新增采购信息
     * 
     * @param tProcure 采购信息
     * @return 结果
     */
    @Override
    public int insertTProcure(TProcure tProcure)
    {
        return tProcureMapper.insertTProcure(tProcure);
    }

    /**
     * 修改采购信息
     * 
     * @param tProcure 采购信息
     * @return 结果
     */
    @Override
    public int updateTProcure(TProcure tProcure)
    {
        return tProcureMapper.updateTProcure(tProcure);
    }

    /**
     * 批量删除采购信息
     * 
     * @param ordersIds 需要删除的采购信息主键
     * @return 结果
     */
    @Override
    public int deleteTProcureByOrdersIds(Integer[] ordersIds)
    {
        return tProcureMapper.deleteTProcureByOrdersIds(ordersIds);
    }

    /**
     * 删除采购信息信息
     * 
     * @param ordersId 采购信息主键
     * @return 结果
     */
    @Override
    public int deleteTProcureByOrdersId(Integer ordersId)
    {
        return tProcureMapper.deleteTProcureByOrdersId(ordersId);
    }
}
